package com.thoughtworks.exercise;

public class FizzBuss {

    private static final String FIZZ = "Fizz";
    private static final String BUSS = "Buss";

    public static void start(){

        for (int number = 1; number <= 100; number++) {
            if ( isDivisibleByThree(number) && isDivisibleByFive(number) ) {
                System.out.println(FIZZ + BUSS);
            } else if (isDivisibleByThree(number) ) {
                System.out.println(FIZZ);
            } else if (isDivisibleByFive(number)) {
                System.out.println(BUSS);
            } else {
                System.out.println(number);
            }
        }


    }

    private static boolean isDivisibleByThree(int number){
        return (number % 3) == 0;
    }

    private static boolean isDivisibleByFive(int number){
        return (number % 5) == 0;
    }

}
